#!/usr/bin/node

const Radio = require('./03-radio');

const station = {
  freq:'106.7',
  name:'music radio'
};

let radio = new Radio(station);

radio.on('open',(station)=>{
  console.log('"%s" FM %s opened',station.name,station.freq);
  console.log('lalalala...');
});

radio.on('stop',(station)=>{
  console.log('"%s" FM %s closed',station.name,station.freq);
});
